package com.yoso.log.application.service.impl;

import com.alibaba.fastjson.JSON;
import com.yoso.base.service.BaseService;
import com.yoso.log.application.service.IStockLogService;
import com.yoso.log.domain.stock.StockLogEntity;
import com.yoso.log.domain.stock.StockLogEntityExample;
import com.yoso.log.interfaces.vo.StockLogVo;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author yoso
 * @date 2022/2/4
 */
@Service
public class StockLogServiceImpl extends BaseService<StockLogEntity, StockLogVo, StockLogEntityExample> implements IStockLogService {
    @Override
    public StockLogEntityExample getEntityExample(Map<String, String> paramMap) {
        return null;
    }

    @Override
    public StockLogEntity V2E(StockLogVo data) {
        return JSON.parseObject(JSON.toJSONString(data), StockLogEntity.class);
    }

    @Override
    public StockLogVo E2V(StockLogEntity data) {
        return JSON.parseObject(JSON.toJSONString(data), StockLogVo.class);

    }

}
